package cn.neusoft.service.Impl;

import cn.neusoft.domain.Commodity;
import cn.neusoft.mapper.MvpSupplierMapper;
import cn.neusoft.service.MvpSupplierService;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MvpSupplierServiceImpl implements MvpSupplierService {

  @Autowired
  MvpSupplierMapper mvpSupplierMapper;

  //查询调拨单中的供货数量
  @Override
  public Long findSupplyAmount(String commodity_id, Date start_date,Date end_date) {
   return mvpSupplierMapper.findSupplyAmount(commodity_id,start_date,end_date);
  }

  //查询退货单中的退货数量
  @Override
  public Long findReturnAmount(String order_commodity_id, Date start_date,Date end_date) {
    return mvpSupplierMapper.findReturnAmount(order_commodity_id,start_date,end_date);
  }

  //查询供应商下商品
  @Override
  public List<Commodity> findSupplierCommodity(String supplier_id) {
    return mvpSupplierMapper.findSupplierCommodity(supplier_id);
  }

  //查询商品
  @Override
  public Commodity findCommodity(String commodity_id) {
    return mvpSupplierMapper.findCommodity(commodity_id);
  }



}
